using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SMS.Common.Entities
{
    public class ReceiveDetail
    {
        private string rece_id;
        [XmlIgnore]
        public string Rece_ID
        {
            get { return rece_id; }
            set { rece_id = value; }
        }

        private string mat_code;
        [XmlElement("Code",Order=1)]
        public string Mat_Code
        {
            get { return mat_code; }
            set { mat_code = value; }
        }

        private string mat_name;
        [XmlElement("Name",Order=2)]
        public string Mat_Name
        {
            get { return mat_name; }
            set { mat_name = value; }
        }

        private string ord_unit;
        [XmlElement("OrderUnit",Order=3)]
        public string Ord_Unit
        {
            get { return ord_unit; }
            set { ord_unit = value; }
        }

        private float ord_qty;
        [XmlElement("OrderQty",Order=5)]
        public float Ord_Qty
        {
            get { return ord_qty; }
            set { ord_qty = value; }
        }

        private float act_qty;
        [XmlElement("ActualQty",Order=6)]
        public float Act_Qty
        {
            get { return act_qty; }
            set { act_qty = value; }
        }

        private float difference;
        [XmlElement("Difference",Order=7)]
        public float Difference
        {
            get { return difference; }
            set { difference = value; }
        }
        private string spec;
        [XmlElement("Spec",Order=4)]
        public string Spec
        {
            get { return spec; }
            set { spec = value; }
        }
	
        public ReceiveDetail() { }
        public ReceiveDetail(string rece_id, string mat_code, string mat_name, string ord_unit, float ord_qty, float act_qty, float difference,string spec)
        {
            this.rece_id = rece_id;
            this.mat_code = mat_code;
            this.mat_name = mat_name;
            this.ord_unit = ord_unit;
            this.ord_qty = ord_qty;
            this.act_qty = act_qty;
            this.difference = difference;
            this.spec = spec;
        }
    }
}
